package com.scx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scx.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryMapper extends BaseMapper<Category> {

    /**
     * 分页查询
     * @param page
     * @param name
     * @param type
     * @return
     */
    Page<Category> selectByNameAndTypePage(@Param("page") Page<Category> page, @Param("name") String name, @Param("type") Integer type);
}
